package com.jiaertangshi.jiaer.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.jiaertangshi.jiaer.dto.ShopType;
import com.jiaertangshi.jiaer.service.ShopTypeService;

/**
 * @ClassName: ShopTypeController
 * @Description: ShopTypeController
 * @author zfy
 * @date 2019年1月14日
 *
 */
@RequestMapping("/shopType")
@RestController
public class ShopTypeController {
	
	@Autowired
	ShopTypeService  shopTypeService;
	
	@RequestMapping(value = "/getAllShopType", method = RequestMethod.GET)
	public   List<ShopType>   getAllShopType(){
		return   shopTypeService.getAllshopType();
	}

}
